package cn.charlotte.pit.commands.player;


import cn.charlotte.pit.commands.PitCommands;
import cn.charlotte.pit.data.PlayerProfile;
import co.aikar.commands.BaseCommand;
import co.aikar.commands.annotation.CommandAlias;
import co.aikar.commands.annotation.Default;
import org.bukkit.entity.Player;

@CommandAlias("iKnowIGotWiped|ikigw|iknowigotwiped")
public class IKnowIGotWiped extends BaseCommand {
    private final PitCommands pitCommands;

    public IKnowIGotWiped(PitCommands pitCommands) {
        this.pitCommands = pitCommands;
    }

    @Default
    public void onKnow(Player player) {
        PlayerProfile profile = PlayerProfile.getPlayerProfileByUuid(player.getUniqueId());
        if (profile.getWipedData() != null) {
            profile.getWipedData().setKnow(true);
        }
    }

}
